package com.ITArmy.service;

import com.ITArmy.beans.Comment;
import com.ITArmy.beans.Shows.UserComment;
import com.ITArmy.common.ServerResponse;
import org.springframework.ui.Model;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CommentService {
    //用户进行评论博客、（回答）问题、评论连载

    ServerResponse comment(HttpServletRequest request, Comment comment, Model model);

    //用户进行删除评论

    ServerResponse deleteComment(long commentId);

    //根据连载的id进行查询评论（封装到UserComment里面）

    List<UserComment> findCommentBySerialize(long serializeId);

    //根据博客id查找评论

    List<Comment> findCommentByBlogId(Long bid);

}
